import request from "@/utils/request";

// 查询发票信息列表
export function listInvoiceInformation(query) {
  return request({
    url: "/contract/InvoiceInformation/list",
    method: "get",
    params: query,
    handleError: true,
  });
}

// 查询发票信息详细
export function getInvoiceInformation(invoiceInformationId) {
  return request({
    url: "/contract/InvoiceInformation/" + invoiceInformationId,
    method: "get",
    handleError: true,
  });
}

// 新增发票信息
export function addInvoiceInformation(data) {
  return request({
    url: "/contract/InvoiceInformation",
    method: "post",
    data: data,
  });
}

// 修改发票信息
export function updateInvoiceInformation(data) {
  return request({
    url: "/contract/InvoiceInformation",
    method: "put",
    data: data,
  });
}

// 删除发票信息
export function delInvoiceInformation(invoiceInformationId) {
  return request({
    url: "/contract/InvoiceInformation/" + invoiceInformationId,
    method: "delete",
  });
}
